import React from "react";
import { BrowserRouter, Routes, Route } from 'react-router-dom'
import Pageheader from "../component/headerView.jsx";
import Home from "./home.jsx";
import Baseinfo from "./baseinfoView.jsx";
import VehView from "./vehView.jsx";
import Actview from "./actView.jsx";
import Fxqview from "./fxqView.jsx";
import Insview from "./insView.jsx";
import Clmview from "./clmView.jsx";

function Layout({ urlConfig = {} }) {



    return (
        <>
            <BrowserRouter basename="/analisy-web">
                <div className="layout">
                    <Pageheader urlConfig={urlConfig} />
                    <div className="out">
                        <div className="out-container">
                            <div className="router-box">
                                <Routes>
                                    <Route path={`/`} element={<Home />} ></Route>
                                    <Route path={`/base`} element={<Baseinfo />} ></Route>
                                    <Route path={`/veh`} element={<VehView />} ></Route>
                                    <Route path={`/act`} element={<Actview />} ></Route>
                                    <Route path={`/fxq`} element={<Fxqview />} ></Route>
                                    <Route path={`/ins`} element={<Insview />} ></Route>
                                    <Route path={`/clm`} element={<Clmview />} ></Route>
                                    <Route path={`*`} element={<Home />}></Route>
                                </Routes>
                            </div>

                        </div>
                    </div>
                </div>
            </BrowserRouter>

        </>
    )
}
export default Layout